package com.demo.services.user.repo;

import com.demo.modules.user.po.RolePO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface RoleRepository extends JpaRepository<RolePO, String> {
    @Query("select e from RolePO e where e.code in :codes")
    List<RolePO> findByCodes(List<String> codes);
}


